package com.yc.cloud.openai.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * AI音频记录
 * 
 * @author Yancy
 * @since 2025-02-19
 */
@Data
@TableName("audio_record")
@ApiModel(value = "AudioRecord对象", description = "AI音频记录")
public class AudioRecord {

    @ApiModelProperty("ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("任务UUID")
    @TableField("uuid")
    private String uuid;

    @ApiModelProperty("音频文件")
    @TableField("file_id")
    private String fileId;

    @ApiModelProperty("客户端ID")
    @TableField("client_id")
    private String clientId;

    @ApiModelProperty("提示词")
    @TableField("prompt")
    private String prompt;

    @ApiModelProperty("类型,5->文生音频")
    @TableField("type")
    private String type;

    @ApiModelProperty("其他参数信息")
    @TableField("note")
    private String note;

    @ApiModelProperty("状态,1->已完成 0->排队中")
    @TableField("status")
    private String status;

    @ApiModelProperty("提供者")
    @TableField("provider")
    private String provider;

    @ApiModelProperty("发音人")
    @TableField("speaker")
    private String speaker;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    public static final String UUID = "uuid";

    public static final String FILE_ID = "file_id";

    public static final String CLIENT_ID = "client_id";

    public static final String PROMPT = "prompt";

    public static final String TYPE = "type";

    public static final String NOTE = "note";

    public static final String STATUS = "status";

    public static final String PROVIDER = "provider";

}
